package com.neusoft.elmboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neusoft.elmboot.po.User;
import com.neusoft.elmboot.service.RegisterService;

@RestController
@RequestMapping("/RegisterController")
public class RegisterController {

		
		@Autowired
		private RegisterService registerService;
		
		@RequestMapping("/registerService")
		public User register(User user) throws Exception{
			return registerService.register(user);
		}
}
